//*******************************************************************
//  Stars.java  Java Foundations
//
//  Demonstrates the use of nestes for loop.
//*******************************************************************

public class Stars
{
  //--------------------------------------------------------------------
  //  Prints a triangle shaps using asterisk (star) character.
  //--------------------------------------------------------------------
  public static void main (String[] args)
  {
    final int MAX_ROWS = 10;

    for (int row = 1;row <= MAX_ROWS; row++)
    {
      for (int star = 1;star <= row;star++)
        System.out.print ("*");

       System.out.println ();
     }
   }
}
